package com.deviche.library.base;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * 公共基类
 * 基类抽取哪些逻辑
 */
public abstract class BaseActivity extends AppCompatActivity {

    protected Context mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(getLayoutId());

        mContext = this;

        initData();
        initView();
    }



    protected void initData() {
    }

    protected void initView() {
    }


    public abstract int getLayoutId();
}
